package com.yeban.javase.day06.test04_localtime.test09;

public enum StudentName {

    STUDENT_NAME_0(0,"张三"),
    STUDENT_NAME_1(1,"李四"),
    STUDENT_NAME_2(2,"王五"),
    STUDENT_NAME_3(3,"赵六"),
    STUDENT_NAME_4(4,"孙七"),
    STUDENT_NAME_5(5,"周八"),
    STUDENT_NAME_6(6,"吴九"),
    STUDENT_NAME_7(7,"郑十"),
    STUDENT_NAME_8(8,"钱一"),
    STUDENT_NAME_9(9,"冯二");

    private final int id;
    private final String name;

    private StudentName(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }
}
